package com.zhanghe.study.spring4.annotation.bean.factory;

import com.zhanghe.study.spring4.annotation.bean.Person;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author zh
 * @date 2021/2/21 13:01
 */
public class PersonFactoryBean implements FactoryBean<Person> {
    @Override
    public Person getObject() throws Exception {
        return new Person();
    }

    @Override
    public Class<?> getObjectType() {
        return Person.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
